/* charcode.c -- 显示字符对应的ASCII码 */

#include <stdio.h>

int main(void) {
  char ch; 

  printf("Please a character: ");
  scanf("%c", &ch);
  printf("The ASCII code of %c is %d.\n", ch, ch);
  
  return 0;
}